package learning.spring.contacts.service;

import learning.spring.contacts.domain.Contact;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: bibro
 * Date: 19.02.14
 * Time: 21:48
 * To change this template use File | Settings | File Templates.
 */
public interface ContactService {
    public Iterable<Contact> findAll();
    public Contact findById(Long id);
    public Contact save(Contact contact);
    public Contact update(Contact contact);
    public Iterable<Contact> findByFirstName(String firstName);
    public Iterable<Contact> findByLastName(String lastName);
    public Iterable<Contact> findByFistNameAndLastName(String firstName, String lastName);

}
